package com.qtz.demo.mapper;


import com.qtz.demo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    //登录验证
    public User login(User user);
    //按username查找
    public User findByUsername(String username);
    //添加用户
    public void addUser(User user);
    //显示未审核用户
    public List<User> showUnchecked();
    //审核通过
    public boolean check(String uid);

}
